package com.thti.mecool.client.command.send.communication;

import com.thti.mecool.client.protocol.GetPageProtocol;
import com.thti.mecool.client.protocol.communication.AddCommunicationProtocol;
import com.thti.mecool.client.service.Protocol;
import com.thti.mecool.client.service.ThtiService;


public class CommunicationSend {
	
	public static void addCommunication(AddCommunicationProtocol addCommunicationProtocol){
		
		ThtiService.sendProtocol(Protocol.getAddCommunication,addCommunicationProtocol);
	}
	
	public static void searchCommunication(String userLoginName,int page,int size){
		GetPageProtocol getPageProtocol=new GetPageProtocol();
		getPageProtocol.setUserLoginName(userLoginName);
		getPageProtocol.setPage(page);
		getPageProtocol.setSize(size);
		ThtiService.sendProtocol(Protocol.getCommunication,getPageProtocol);	
	}

}
